package com.ayic.garbagerecycle.pojo;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    private List<T> records;    // 当前页数据
    private int total;          // 总记录数
    private int page;           // 当前页码
    private int pageSize;       // 每页大小

    public PageResult(List<T> records, int total, int page, int pageSize) {
        this.records = records;
        this.total = total;
        this.page = page;
        this.pageSize = pageSize;
    }
}